package com.ccsoft.backuptools.service;

import com.ccsoft.backuptools.dao.ColorMapper;
import com.ccsoft.backuptools.entity.Color;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ColorServiceImpl implements ColorService {
    @Autowired
    private ColorMapper dao;
    @Override
    public List<Color> selectAll() {
        return dao.selectAll();
    }

    @Override
    public int insert(Color record) {
        return dao.insertSelective(record);
    }
}
